home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
090
/
pctj0987.arc
/
DRAWTEST.BAS
< prev
next >
Wrap
BASIC Source File
|
1987-07-02
|
669b
|
27 lines
5 ' ADAPTED FROM IBM BASIC MANUAL VER 3.0, PG. 78
10 KEY OFF
20 SCREEN 1,0
30 STAR$="M+7,17 M-17,-12 M+20,0 M-17,12 M+7,-17"
40 SCALE = 0
50 S$ = "C1;S=" + VARPTR$(SCALE) + " BM-2,0 X" + VARPTR$(STAR$)
60 START! = TIMER
70 '
80 ' Time empty loops
90 T1! = TIMER
100 FOR I = 1 TO 50
110 FOR SCALE = 1 TO 40 STEP 2
120 NEXT SCALE
130 NEXT I
140 T2! = TIMER
150 '
160 ' Start the test
170 FOR I = 1 TO 50
180 CLS : DRAW "BM300,25" 'INITIAL POINT
190 FOR SCALE =1 TO 40 STEP 2
200 DRAW S$
210 NEXT SCALE
220 NEXT I
230 SECS! = (TIMER - T2!) - (T2! - T1!)
240 PRINT SECS!
250 INPUT "PRESS ENTER TO QUIT"; X